package com.air.mapper;

import cn.wolfcode.common.domain.UserInfo;
import com.air.domain.Condition;
import com.air.domain.UserLogin;
import com.github.pagehelper.PageInfo;
import feign.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Created by wolfcode
 */
public interface UserMapper {
    /**
     * 根据用户手机号码查询用户登录信息对象
     * @param phone
     * @return
     */
    UserLogin selectUserLoginByPhone(Long phone);
    /**
     * 根据用户手机号码查询用户的基础信息
     * @param phone
     * @return
     */
    UserInfo selectUserInfoByPhone(Long phone);

    List<UserLogin> selectUserLoginList(Integer num);

    List<UserInfo> conditionFindByPage(Integer page, Integer pageSize,@Param(value ="condition") Condition condition);

    void addUser(UserInfo userInfo);

    void updateUser(UserInfo userInfo);

    void batchDeleteUser(@Param(value = "ids")List<Long> ids);
}
